
	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	Data Life Engine  "" v.0.07 

	"  !"

	Admin-club.ru (c) 2009


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	 .

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	
	  :

		 Data Life Engine	7.0 

		   	16 
	
		 GD			1.0 

		    	

		  		.htaccess

	  :

		 Data Life Engine	8.3 

		   	128 
	
		 GD			2.0+ 

		    	+

		  		.htaccess

	 :
		
		 0.06 


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	!   ,  
	
	 "backup" ,     .


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
	

	        - 777  755:

	1) engine
	2) templetes
	3) uploads

	     - 777  755:

	4) engine/inc/options.php
	5) engine/modules/profile.php
	6) engine/engine.php
	7) .htaccess
	8) admin.php
	9) index.php

	     ,   ,
	     ,    :

		domains/admin-club.ru/public_html

		   :

		domains/admin-club.ru/public_html/index.php

	    <public_html>    777  755.

	:  777  755 ,   
	      ,    
	 .      777 - 
	    ,    
	,    ,      777,
	     ,   777 
	         (  ).
	,    ,     755.


		!    
		  []   ,
		       ,  
		Total Commander 6 !

	   .

	1.     DLE  v.0.06,    ,  ,     2.

		1.1.   <dle/engine/photo>, 

		1.2.   <dle/engine/data/photo_conf.php>, <dle/engine/data/photo_lan.php>

		1.3.   <dle/engine/inc/photo.php>

		1.4.   <dle/engine/skins/images/photo.gif>

		1.5.   <dle/engine/skins/images/photo>, 

		1.6.   <dle/.htaccess>

			:

------------------------------------------------------------------------------------
# DLE Photoalboms

RewriteRule ^photo-micron-([^/]*)(/?)+$ index.php?do=photo&micron=$1 [L]

RewriteRule ^photo(/?)+$ index.php?do=photo [L]

RewriteRule ^photo-([a-z]+)(/?)+$ index.php?do=photo&a=$1 [L]

RewriteRule ^photo-([0-9]+)(/?)+$ index.php?do=photo&albom=$1 [L]

RewriteRule ^photo-small-([^/]*)(/?)+$ index.php?do=photo&small=$1 [L]

RewriteRule ^photo-photo-([^/]*)(/?)+$ index.php?do=photo&photobig=$1 [L]

RewriteRule ^photo-id-([^/]*).html$ index.php?do=photo&photoid=$1&a=showphoto [L]

RewriteRule ^photo-([0-9]+)/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&albom=$1&onpage=$2 [L]

RewriteRule ^photo/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&onpage=$1 [L]

RewriteRule ^photo/tegs(/?)+$ index.php?do=photo&a=tegs [L]

RewriteRule ^photo/tegs-([^/]*)(/?)+$ index.php?do=photo&tegs=$1 [L]

RewriteRule ^photo/tegs-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&tegs=$1&onpage=$2 [L]

RewriteRule ^photo/search(/?)+$ index.php?do=photo&a=search [L]

RewriteRule ^photo/search-([^/]*)(/?)+$ index.php?do=photo&search=$1 [L]

RewriteRule ^photo/search-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&search=$1&onpage=$2 [L]

RewriteRule ^photo/user-([^/]*)(/?)+$ index.php?do=photo&user=$1 [L]

RewriteRule ^photo/user-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&user=$1&onpage=$2 [L]

RewriteRule ^photo-([a-z]+)/([0-9]+)(/?)+$ index.php?do=photo&a=$1&onpage=$2 [L]

# DLE Photoalboms
------------------------------------------------------------------------------------
			

			 .

		1.7.   <dle/engine/engine.php>


			 :

------------------------------------------------------------------------------------
// module DLE Photoalboms

case "photo" :

include ENGINE_DIR.'/photo/photo.php';

break;
------------------------------------------------------------------------------------

			 .

		1.8.   <dle/engine/modules/cron.php>

			 :

------------------------------------------------------------------------------------
include ROOT_DIR.'/engine/photo/inc/crona.php';
------------------------------------------------------------------------------------

			 .

		1.9.   <dle/engine/modules/profile.php>

			 :

------------------------------------------------------------------------------------
if(substr_count($tpl->copy_template,"{addsphoto}")>0 or substr_count($tpl->copy_template,"{USER_PHOTOS}")>0 or substr_count($tpl->copy_template,"{YOU:moder-alboms}")>0){

require_once ROOT_DIR.'/engine/photo/inc/unit_profile.php';

$tpl->set('{addsphoto}', $numphotos);

$tpl->set('{USER_PHOTOS}', $USERPHOTOS);

IF ($YOURalboms!=''){

$tpl->set('{YOU:moder-alboms}', $YOURalboms);

$tpl->set('[ifmoderalbom]','');

$tpl->set('[/ifmoderalbom]','');

}else{

                                               if ( strpos( $tpl->copy_template, "[ifmoderalbom]" ) !== false ) {

                                                              $tpl->copy_template = preg_replace( "#\\[ifmoderalbom\\](.*?)\\[/ifmoderalbom\\]#ies",'', $tpl->copy_template);

                                               }

}

}
------------------------------------------------------------------------------------

			 .

		1.10. [   DLE < 8.2]   <dle/admin.php>


			 :

			[ DLE < 7.5]

------------------------------------------------------------------------------------
'photo'      => 'admin',
------------------------------------------------------------------------------------

			[ ]

------------------------------------------------------------------------------------
'photo',
------------------------------------------------------------------------------------

			 .

		1.11. [   DLE < 8.2]   <dle/engine/inc/options.php>

			 :

			[ DLE < 7.5]

------------------------------------------------------------------------------------
array(

'name' => "<font color=teal><u></u></font>",

'url' => "$PHP_SELF?mod=photo",

'descr' => "   !",

'image' => 'photo.gif',

'access' => "1",

),
------------------------------------------------------------------------------------

			[ ]

------------------------------------------------------------------------------------
array(

'name' => "<font color=teal><u></u></font>",

'url' => "$PHP_SELF?mod=photo",

'descr' => "   !",

'image' => 'photo.gif',

'access' => "admin",

),
------------------------------------------------------------------------------------

			 .

		1.12. [ ,   ]  <dle/index.php>

			 ():


_______________________________________ ____________________________________
------------------------------------------------------------------------------------
require_once ROOT_DIR.'/engine/photo/inc/informer_photo.php';
------------------------------------------------------------------------------------



------------------------------------------------------------------------------------
$tpl->set('{informer_photo}', $tpl->result['informer_photo']);
------------------------------------------------------------------------------------
_______________________________________ ____________________________________


 ()


_______________________________________ ____________________________________
------------------------------------------------------------------------------------
require_once ROOT_DIR.'/engine/photo/inc/informer_alboms.php';
------------------------------------------------------------------------------------



------------------------------------------------------------------------------------
$tpl->set('{informer_alboms}', $informer_alboms);
------------------------------------------------------------------------------------
_______________________________________ ____________________________________

 ()


_______________________________________ ____________________________________
------------------------------------------------------------------------------------
require_once ROOT_DIR.'/engine/photo/inc/informer_rating.php';
------------------------------------------------------------------------------------



------------------------------------------------------------------------------------
$tpl->set( '{informer_rating}' , $informer_rating );
------------------------------------------------------------------------------------
_______________________________________ ____________________________________

 ()


_______________________________________ ____________________________________
------------------------------------------------------------------------------------
require_once ROOT_DIR.'/engine/photo/inc/informer_tegs.php';
------------------------------------------------------------------------------------



------------------------------------------------------------------------------------
$tpl->set('{informer_photo_tegs}', $informer_tegs);
------------------------------------------------------------------------------------
_______________________________________ ____________________________________

			 .

	2.        <uploads>    .

		         - Default
		 Flexible,      <uploads/templates/Default>
		 <uploads/templates/siteShablon>,  <SiteShablon> -   
		 . 

		            (
		 <uploads/templates/Default/photo>   <uploads/templates/Default/css/photo.css>).


	3.  SQL  .

		[    ""]

		   <hand install/sqls/new_intall.txt>

		[  ]

		   <hand install/sqls/upgrade_intall.txt>

		[    8.2-8.3]

		    <hand install/sqls/8.2 - 8.3 admin.txt>

		*  'dle'   
		    .

		*     sql
		  -  ,
		    1 .

		*     ,
		     sql - .

		*      .

	4.    .

		4.1.   <engine/engine.php>

		:


------------------------------------------------------------------------------------
switch ( $do ) {
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------

		case "photo":

		include ENGINE_DIR.'/photo/brain.php';

		break;


------------------------------------------------------------------------------------

		 .



		4.2.   <engine/modules/profile.php>

		:


------------------------------------------------------------------------------------
$tpl->set( '{news_num}', $row['news_num'] );
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
require_once( ROOT_DIR  . '/engine/photo/photo_nucleus/peace/profile.php'  );
------------------------------------------------------------------------------------

		 .



		4.3.   <.htaccess>

		:


------------------------------------------------------------------------------------
RewriteEngine On
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------


# DLE Photoalboms

RewriteRule ^photo(/?)+$ index.php?do=photo [L]

RewriteRule ^photo-([a-z]+)(/?)+$ index.php?do=photo&a=$1 [L]

RewriteRule ^photo-([0-9]+)(/?)+$ index.php?do=photo&albom=$1 [L]

RewriteRule ^photo-id-([0-9]+).html$ index.php?do=photo&photoid=$1&a=showphoto [L]

RewriteRule ^photo-id-([0-9]+)-([0-9]+).html$ index.php?do=photo&photoid=$1&a=showphoto&pagecomments=$2 [L]

RewriteRule ^photo-([0-9]+)/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&albom=$1&onpage=$2 [L]

RewriteRule ^photo/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&onpage=$1 [L]

RewriteRule ^photo/mark-([0-9]+)+$ index.php?do=photo&mark=$1 [L]

RewriteRule ^photo/mark-([0-9]+)/([0-9]+)$ index.php?do=photo&mark=$1&onpage=$2 [L]

RewriteRule ^photo/rss(/?)+$ index.php?do=photo&a=rss [L]

RewriteRule ^photo/rss-([0-9]+)+$ index.php?do=photo&rss=$1 [L]

RewriteRule ^photo/tegs(/?)+$ index.php?do=photo&a=tegs [L]

RewriteRule ^photo/tegs-([^/]*)(/?)+$ index.php?do=photo&tegs=$1 [L]

RewriteRule ^photo/tegs-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&tegs=$1&onpage=$2 [L]

RewriteRule ^photo/search(/?)+$ index.php?do=photo&a=search [L]

RewriteRule ^photo/search-([^/]*)(/?)+$ index.php?do=photo&search=$1 [L]

RewriteRule ^photo/search-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&search=$1&onpage=$2 [L]

RewriteRule ^photo/user-([^/]*)(/?)+$ index.php?do=photo&user=$1 [L]

RewriteRule ^photo/user-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&user=$1&onpage=$2 [L]

RewriteRule ^photo-([a-z]+)/([0-9]+)(/?)+$ index.php?do=photo&a=$1&onpage=$2 [L]

RewriteRule ^uploads/photos/(micro|others|previews|show|temp)/(.*).(jpg|png|gif|jpeg)+$ index.php?do=photo&a=givemefile&type=$1&file=$2&filetype=$3 [L]

RewriteRule ^uploads/photos/(.*).(jpg|png|gif|jpeg)+$ index.php?do=photo&a=givemefile&file=$1&filetype=$2 [L]

# DLE Photoalboms
------------------------------------------------------------------------------------

		 .



		4.4.   <templates//userinfo.tpl>

		:


------------------------------------------------------------------------------------
: {rate}
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
<br><br><if moder> :<alboms><br></if>
 : <a href="<href photos>"><photos></a><br>
<script src="/index.php?do=photo&doingmodule=1&username={usertitle}&cpu=1"></script>
------------------------------------------------------------------------------------

		 .

		4.5.    8.0.

		  <admin.php>

		:


------------------------------------------------------------------------------------
'googlemap',
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
'photo',
------------------------------------------------------------------------------------

		 .

		  <engine/inc/options.php>

		:


------------------------------------------------------------------------------------
$options['others'] = array (
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
array (
											'name' => '<font color=teal><u></u></font>',
											'url' => "$PHP_SELF?mod=photo",
											'descr' => '   !',
											'image' => "photo.gif",
											'access' => 'admin'
								),
------------------------------------------------------------------------------------

		 .

		    8.0,  ,    ,      /hand install/sqls/8.2 - 8.3 admin.txt.

		4.6.     7.5.

		  <admin.php>

		:


------------------------------------------------------------------------------------
'cmoderation' => 'user',
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
'photo' => 'admin',
------------------------------------------------------------------------------------

		 .

		  <engine/inc/options.php>

		:


------------------------------------------------------------------------------------
$options['others'] = array (
------------------------------------------------------------------------------------

		    :


------------------------------------------------------------------------------------
array (
											'name' => '<font color=teal><u></u></font>',
											'url' => "$PHP_SELF?mod=photo",
											'descr' => '   !',
											'image' => "photo.gif",
											'access' => '1'
								),
------------------------------------------------------------------------------------

		 .


		5.       .

			<uploads/photos> 		- 	777
			<uploads/photos/micro> 		- 	777
			<uploads/photos/others> 	- 	777
			<uploads/photos/previews> 	- 	777
			<uploads/photos/show> 		- 	777
			<uploads/photos/temp> 		- 	777
			<engine/photo/caches> 		- 	777
			<engine/photo/data> 		- 	777

		6.    .

			  <refresh/dle_photo_upgrade.php>      .   .

			     ,    ,
			    ,     "", 
			.

		7.  .
			

	   ,   
	 : http://_/photo

	     :

		-   ;

		-   /;
		
		- " ";

		-  , ,

		     

		   ICQ 709-056   

		   .


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

	.


	" " 		- http://admin-club.ru
			
		      		- http://admin-club.ru/forum

	Data Life Engine 	- http://dle-news.ru
	

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	() RedRat, 2009

